
package com.xquant.common.engine.xPP.cxf.webservice;

import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import javax.xml.bind.annotation.XmlType;


/**
 * <p>ComputeTypeEnum的 Java 类。
 * 
 * <p>以下模式片段指定包含在此类中的预期内容。
 * <pre>
 * &lt;simpleType name="ComputeTypeEnum"&gt;
 *   &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
 *     &lt;enumeration value="KnockOutPayoff"/&gt;
 *     &lt;enumeration value="UntriggerMinimumPayoff"/&gt;
 *     &lt;enumeration value="RangePayoff"/&gt;
 *     &lt;enumeration value="CapPrice"/&gt;
 *     &lt;enumeration value="FloorPrice"/&gt;
 *     &lt;enumeration value="Strike"/&gt;
 *     &lt;enumeration value="TriggerLevel"/&gt;
 *     &lt;enumeration value="ExercisePayoff"/&gt;
 *   &lt;/restriction&gt;
 * &lt;/simpleType&gt;
 * </pre>
 * 
 */
@XmlType(name = "ComputeTypeEnum")
@XmlEnum
public enum ComputeTypeEnum {

    @XmlEnumValue("KnockOutPayoff")
    KNOCK_OUT_PAYOFF("KnockOutPayoff"),
    @XmlEnumValue("UntriggerMinimumPayoff")
    UNTRIGGER_MINIMUM_PAYOFF("UntriggerMinimumPayoff"),
    @XmlEnumValue("RangePayoff")
    RANGE_PAYOFF("RangePayoff"),
    @XmlEnumValue("CapPrice")
    CAP_PRICE("CapPrice"),
    @XmlEnumValue("FloorPrice")
    FLOOR_PRICE("FloorPrice"),
    @XmlEnumValue("Strike")
    STRIKE("Strike"),
    @XmlEnumValue("TriggerLevel")
    TRIGGER_LEVEL("TriggerLevel"),
    @XmlEnumValue("ExercisePayoff")
    EXERCISE_PAYOFF("ExercisePayoff");
    private final String value;

    ComputeTypeEnum(String v) {
        value = v;
    }

    public String value() {
        return value;
    }

    public static ComputeTypeEnum fromValue(String v) {
        for (ComputeTypeEnum c: ComputeTypeEnum.values()) {
            if (c.value.equals(v)) {
                return c;
            }
        }
        throw new IllegalArgumentException(v);
    }

}
